package com.muyu.danmo.service.impl;


import com.muyu.common.core.domain.Result;
import com.muyu.danmo.controller.DanmoPortfolioController;
import com.muyu.danmo.domain.DanmoCollectWorks;
import com.muyu.danmo.domain.DanmoPortfolio;
import com.muyu.danmo.mapper.DanmoCollectWorksMapper;
import com.muyu.danmo.mapper.DanmoPortfolioMapper;
import com.muyu.danmo.service.IDanmoCollectWorksService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 拾贝作品集Service业务层处理
 *
 * @author yangle
 * @date 2024-10-30
 */
@Service
public class DanmoCollectWorksServiceImpl implements IDanmoCollectWorksService
{
    @Autowired
    private DanmoCollectWorksMapper danmoCollectWorksMapper;

    /**
     * 查询拾贝作品集
     *
     * @param id 拾贝作品集主键
     * @return 拾贝作品集
     */
    @Override
    public DanmoCollectWorks selectDanmoCollectWorksById(Long id)
    {
        return danmoCollectWorksMapper.selectDanmoCollectWorksById(id);
    }

    /**
     * 查询拾贝作品集列表
     *
     * @param danmoCollectWorks 拾贝作品集
     * @return 拾贝作品集
     */
    @Override
    public List<DanmoCollectWorks> selectDanmoCollectWorksList(DanmoCollectWorks danmoCollectWorks)
    {
        return danmoCollectWorksMapper.selectDanmoCollectWorksList(danmoCollectWorks);
    }

    /**
     * 新增拾贝作品集
     *
     * @param danmoCollectWorks 拾贝作品集
     * @return 结果
     */
    @Override
    public int insertDanmoCollectWorks(DanmoCollectWorks danmoCollectWorks)
    {
        return danmoCollectWorksMapper.insertDanmoCollectWorks(danmoCollectWorks);
    }

    /**
     * 修改拾贝作品集
     *
     * @param danmoCollectWorks 拾贝作品集
     * @return 结果
     */
    @Override
    public int updateDanmoCollectWorks(DanmoCollectWorks danmoCollectWorks)
    {
        return danmoCollectWorksMapper.updateDanmoCollectWorks(danmoCollectWorks);
    }

    /**
     * 批量删除拾贝作品集
     *
     * @param ids 需要删除的拾贝作品集主键
     * @return 结果
     */
    @Override
    public int deleteDanmoCollectWorksByIds(Long[] ids)
    {
        return danmoCollectWorksMapper.deleteDanmoCollectWorksByIds(ids);
    }

    /**
     * 删除拾贝作品集信息
     *
     * @param id 拾贝作品集主键
     * @return 结果
     */
    @Override
    public int deleteDanmoCollectWorksById(Long id)
    {
        return danmoCollectWorksMapper.deleteDanmoCollectWorksById(id);
    }

    @Autowired
    private DanmoPortfolioMapper danmoPortfolioMapper;

}
